import request from '/@/utils/request';

/**
 * 用户登录
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export function signIn(params: object) {
	return request({
		url: '/adminUser/login',
		method: 'post',
		data: params,
	});
}

// 用户列表
export function getUserList(params: object) {
	return request({
		url: '/user/userList',
		method: 'get',
		params,
	});
}

//删除用户
export function removeUser(params: object) {
	return request({
		url: '/user/delete',
		method: 'post',
		data: params,
	});
}

// 修改用户到期时间
export function editUser(params: object) {
	return request({
		url: '/user/editExpirationTime',
		method: 'post',
		data: params,
	});
}

// 查询所有
export function get_all_product(params: object) {
	return request({
		url: '/newrobotProductList',
		method: 'post',
		data: params,
	});
}

// 获取卖家统计Cookie
export function get_seller_cookie(params: object) {
	return request({
		url: '/adminUser/sellerCookie',
		method: 'get',
		params,
	});
}

// 保存卖家统计Cookie
export function save_cookie_req(params: object) {
	return request({
		url: '/adminUser/saveSellerCookie',
		method: 'post',
		data: params,
	});
}

// 删除卖家统计Cookie
export function removeCookie(params: object) {
	return request({
		url: '/adminUser/removeSellerCookie',
		method: 'post',
		data: params,
	});
}
